#ifndef __APPDEFS_H__
#define __APPDEFS_H__

#include <stdint.h>
#include <string.h>
#include "../version.h"

#define DELAY_FOR_GDB 1

#define _BV(val) (1<<val)

typedef enum {FAILED = 0, PASSED = !FAILED} TestStatus;

#ifdef __arm__

  #include "platform_config.h"
  #include "stm32f10x_conf.h"
  #include "stm32f10x.h"

  #if (USE_FREERTOS==1)
    #include "freertos"
  #endif

  #define  NOP()   asm volatile ("nop")
  #define  NULL    (void*)0
  #define __RAM__  __attribute__ ((section(".fast")))

#endif


#define EV_MAIN_BUT_1  1
#define EV_MAIN_BUT_2  2
#define EV_MAIN_BUT_3  3
#define EV_MAIN_BUT_4  4

#endif /*__APPDEFS_H__*/
